#include<iostream>
using namespace std;
int main()
{
	int t;
	cin >> t;
	long long sum = 0, max = 0;
	while (t--) {
		int n;
		cin >> n;
		int m = 0;
		sum = 0;
		max = 0;
		for (int i = 0; i < n; i++) {
			cin >> m;
			if (m > max) {
				max = m;
			}
			sum += m;
		}
		sum = sum - max + 1;
		if (sum >= max) {
			cout << "Yes" << endl;
		}
		else {
			cout << "No" << endl;
		}
	}
	return 0;
}